//
//  DetailViewController.swift
//  swiftProductTemplate
//
//  Created by 刘圣洁 on 2025/6/19.
//

import UIKit

class DetailViewController: BaseViewController {
    
    lazy var btn = {
        let btn = UIButton.makePlainButton(
            title: "跳转下一页",
            font: AppTheme.Fonts.callout,
            textColor: AppTheme.Colors.primary,
            backgroundColor: UIColor.systemBlue,
            target: self,
            action: #selector(pushNext),
            toView: view
        ).withCornerRadius(5)
        return btn
    }()

    override func viewDidLoad() {
        super.viewDidLoad()
        
        navigationItem.title = "详情"
        sh_prefersNavigationBarHidden = true
        
        btn.frame = CGRect(x: 100, y: 100, width: 200, height: 70)
    }
    
    @objc func pushNext() {
        let vc = ThirdViewController()
        navigationController?.pushViewController(vc, animated: true)
    }

}
